package com.example.whm.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


public class Subscribe implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	String name;
	//String date_range;
	List<SubscribeItem> sub_items=new ArrayList<SubscribeItem>();
	int valid_days;
	int price;
	int sub_price;
	int sub_num;
	//int sub_type;// week 1 mouth 2
	String note;
	//int is_online=0;
	String createtime=new Date().toLocaleString();
	
	
	
	
	public Subscribe(String id, String name, //String date_range,
			List<SubscribeItem> sub_items, int valid_days, int price,
			int sub_price, int sub_num, String note, String createtime) {
		super();
		this.id = id;
		this.name = name;
		//this.date_range = date_range;
		this.sub_items = sub_items;
		this.valid_days = valid_days;
		this.price = price;
		this.sub_price = sub_price;
		this.sub_num = sub_num;
	
		this.note = note;
		this.createtime = createtime;
	}
	public Subscribe() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
	
	
	
	
	
	/*public int getSub_type() {
		return sub_type;
	}
	public void setSub_type(int sub_type) {
		this.sub_type = sub_type;
	}*/
	/*public int getIs_online() {
		return is_online;
	}
	public void setIs_online(int is_online) {
		this.is_online = is_online;
	}*/
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/*public String getDate_range() {
		return date_range;
	}
	public void setDate_range(String date_range) {
		this.date_range = date_range;
	}*/
	public List<SubscribeItem> getSub_items() {
		return sub_items;
	}
	public void setSub_items(List<SubscribeItem> sub_items) {
		this.sub_items = sub_items;
	}
	public int getValid_days() {
		return valid_days;
	}
	public void setValid_days(int valid_days) {
		this.valid_days = valid_days;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public int getSub_price() {
		return sub_price;
	}
	public void setSub_price(int sub_price) {
		this.sub_price = sub_price;
	}
	public int getSub_num() {
		return sub_num;
	}
	public void setSub_num(int sub_num) {
		this.sub_num = sub_num;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}


}
